package com.cloud.drore.eboss.operation.entity.po;


import com.alibaba.fastjson.annotation.JSONField;
import com.cloud.drore.eboos.common.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.Table;


import java.util.Date;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: 供应商自动结算基本信息po<br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/1/5 0005 下午 6:12 <br>
 * @Author: <a href="410508961@qq.com">夏凯</a>
 */
@Data
@Table(name = "eboss_supplier_settlement_info")
public class SupplierSettlementAutoInfoPo extends BaseEntity<Long> {
    /**
     * 商户id
     */
    @JsonProperty("supplier_id")
    @JSONField(name = "supplier_id")
    @ApiModelProperty(name = "supplier_id", notes = "商户id", example = "1")
    private Long supplierId;

    /**
     * 结算周期
     */
    @JsonProperty("settlement_cycle")
    @JSONField(name = "settlement_cycle")
    @ApiModelProperty(name = "settlement_cycle", notes = "结算周期", example = "1")
    private Integer settlementCycle;

    /**
     * 每个月几号作为结算日（默认为5号）
     */
    @JsonProperty("settlement_count")
    @JSONField(name = "settlement_count")
    @ApiModelProperty(name = "settlement_count", notes = "每个月几号作为结算日", example = "5")
    private Integer settlementCount;

    /**
     * 结算触发时间
     */
    @JsonProperty("settlement_date")
    @JSONField(name = "settlement_date")
    @ApiModelProperty(name = "settlement_date", notes = "结算触发时间", example = "2018-03-22 16:25:38")
    private Date settlementDate;

    /**
     * 供应商结算的状态
     */
    @JsonProperty("settlement_state")
    @JSONField(name = "settlement_state")
    @ApiModelProperty(name = "settlement_state", notes = "供应商结算的状态", example = "0")
    private int settlementState;


    /**
     * 结算方式
     */
    @JsonProperty("settlement_type")
    @JSONField(name = "settlement_type")
    @ApiModelProperty(name = "settlement_type", notes = "结算方式", example = "线下结算")
    private String settlementType;

    /**
     * 下一次结算始时间
     */
    @JsonProperty("next_auto_settlement_time")
    @JSONField(name = "next_auto_settlement_time", format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "next_auto_settlement_time", notes = "下一次结算始时间", example = "2018-10-30")
    private Date supplierSettlementTime;

}